﻿import re
from datetime import datetime

from google.appengine.ext import db

class Album(db.Model):
    shareid = db.IntegerProperty()
    picasa_link = db.StringProperty()
    provider = db.StringProperty()
    title = db.StringProperty()
    desc = db.StringProperty()
    cover = db.StringProperty()
    
    picture_count = db.IntegerProperty()
    
    xml_url = db.StringProperty()
    xml = db.TextProperty()
    
    support_score = db.IntegerProperty()
    preview_count = db.IntegerProperty()
    download_count = db.IntegerProperty()
    
    editor_score = db.IntegerProperty()
    
    iphone_download_count = db.IntegerProperty()
    
    created_on = db.DateTimeProperty(auto_now_add = True)
    last_update = db.DateTimeProperty(auto_now = True)
    
    hide = db.IntegerProperty()
    #delete = db.IntegerProperty()
    
    
class Picture(db.Model):
    title = db.StringProperty()
    desc = db.StringProperty()
    thumbnail = db.StringProperty()
    fullpic = db.StringProperty()